<!-- search by distance paging tpl -->

{if $sbd_calc > $config.sbd_listings_per_page}
	{math assign='pages' equation='ceil(calc/per_page)' calc=$sbd_calc per_page=$config.sbd_listings_per_page}
	
	<ul class="paging" id="sbd_paging">
	{section name='pages' start=0 loop=$pages}
		{if ($sbd_page && $sbd_page == $smarty.section.pages.iteration) || (!$sbd_page && $smarty.section.pages.first)}
			<li class="active">{$smarty.section.pages.iteration}</li>
		{else}
			<li><a title="{$lang.page} #{$smarty.section.pages.iteration}" href="javascript:void(0)">{$smarty.section.pages.iteration}</a></li>
		{/if}
	{/section}
	</ul>
{/if}

<!-- search by distance paging tpl end -->